<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2025-3-4
  Time: 22:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录页面</title>
    <style>
        /* 全局样式 */
        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            background-color: #f0f2f5;
            margin: 0;
            padding: 0;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        /* 登录容器 */
        .login-container {
            background-color: white;
            padding: 40px 50px;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            width: 100%;
            max-width: 400px;
        }

        /* 标题 */
        .login-title {
            text-align: center;
            color: #2c3e50;
            margin-bottom: 30px;
            font-size: 24px;
            font-weight: 600;
        }

        /* 表单组 */
        .form-group {
            margin-bottom: 20px;
        }

        /* 输入框标签 */
        .form-label {
            display: block;
            color: #4a5568;
            margin-bottom: 8px;
            font-size: 14px;
            font-weight: 500;
        }

        /* 输入框 */
        .form-input {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #ced4da;
            border-radius: 6px;
            font-size: 14px;
            transition: border-color 0.3s;
            box-sizing: border-box;
        }

        .form-input:focus {
            border-color: #3498db;
            outline: none;
            box-shadow: 0 0 0 2px rgba(52,152,219,0.1);
        }

        /* 提交按钮 */
        .submit-btn {
            width: 100%;
            padding: 12px;
            background-color: #3498db;
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s;
            margin-top: 20px;
        }

        .submit-btn:hover {
            background-color: #2980b9;
        }

        /* 响应式优化 */
        @media (max-width: 480px) {
            .login-container {
                padding: 30px 20px;
                margin: 15px;
            }
        }
    </style>
</head>
<body>
<div class="login-container">
    <h1 class="login-title">学生登录</h1>
    <form action="FirstServlet" method="post"  accept-charset="UTF-8">
        <div class="form-group">
            <label class="form-label" for="studentId">学号</label>
            <input
                    type="text"
                    id="studentId"
                    name="studentId"
                    class="form-input"
                    placeholder="请输入学号"
                    required
            >
        </div>

        <div class="form-group">
            <label class="form-label" for="studentName">姓名</label>
            <input
                    type="text"
                    id="studentName"
                    name="studentName"
                    class="form-input"
                    placeholder="请输入姓名"
                    required
            >
        </div>

        <button type="submit" class="submit-btn">登录</button>
    </form>
</div>
</body>
</html>
